<?php #//AJAX PHP PENNY AUCTION v.1.1

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
include "./includes/config.inc.php";


$TIME = mktime(date("H")+$SETTINGS['timecorrection'],date("i"),date("s"),date("m"), date("d"),date("Y"));
$NOW = date("YmdHis",$TIME);


$auction_id = $_GET['id']; 
$id2 = $_SESSION["PHPAUCTION_LOGGED_IN"];


       
      $query_title1 = "select title, current_bid, shipping_fee from PHPAUCTIONXL_auctions where id=$auction_id";
                             $query_title2 =  mysql_query ($query_title1);
                                $item_name = mysql_result($query_title2,0,"title");
                               $price = mysql_result($query_title2,0,"current_bid");
                              $shipping_fee = mysql_result($query_title2,0,"shipping_fee");



           $query_title1 = "select email from PHPAUCTIONXL_users where id=1";
                             $query_title2 =  mysql_query ($query_title1);
                                $paypal_email = mysql_result($query_title2,0,"email");
                              
                           
                            $query_tax1 = "select tax_rate_percentage from PHPAUCTIONXL_version_1_3 where id=1";
                             $query_tax2 =  mysql_query ($query_tax1);
                                $tax_rate_percentage1 = mysql_result($query_tax2,0,"tax_rate_percentage");  
                                
            
                                                 $query_settings = "select * from PHPAUCTIONXL_version_2_1 where id='1'";
                             $query_settings2 =  mysql_query ($query_settings);
                                $nat_tax_rate2 = mysql_result($query_settings2,0,"nat_tax_rate");                             
                                 $tax_state2 = mysql_result($query_settings2,0,"tax_state"); 
                                   
                                   
                                    $query_settings = "select * from PHPAUCTIONXL_users where id=$id2";
                             $query_settings2 =  mysql_query ($query_settings);
                                $users_state = mysql_result($query_settings2,0,"prov"); 

                        //   echo  $users_state; 
                      //     echo   $nat_tax_rate2;
                      //       echo   $tax_state2;
                       //       echo  $tax_rate_percentage1;
                             
  $item_number = "User-Id:";
  $item_number .=     $id2;
  $item_number .=     ":Auction-Item-ID:";
  $item_number .=     $auction_id;
  $item_number .=     ":Price:";
  $item_number .=     $price;  



include "header.php";
include phpa_include("template_auction_paypal_php.html");
include "footer.php";

?>

       